// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'Id',
        footer: "Foots",
        cnName: '设备登记',
        name: 'Equipment',
        url: "/Equipment/",
        sortName: "Id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"NursingUnitId":"","Devicetype":"","DeviceNo":"","State":""};
    const editFormOptions = [[{"dataKey":"护理单元（Id）(动态)","data":[],"title":"护理单元ID","required":true,"field":"NursingUnitId","type":"select"}],
                              [{"title":"设备类型","required":true,"field":"Devicetype","type":"text"}],
                              [{"title":"设备编号","required":true,"field":"DeviceNo","type":"text"}],
                              [{"dataKey":"设备状态","data":[],"title":"状态","required":true,"field":"State","type":"select"}]];
    const searchFormFields = {};
    const searchFormOptions = [];
    const columns = [{field:'Id',title:'主键ID',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'NursingUnitId',title:'护理单元ID',type:'int',bind:{ key:'护理单元（Id）(动态)',data:[]},width:110,require:true,align:'left'},
                       {field:'Devicetype',title:'设备类型',type:'string',width:110,require:true,align:'left'},
                       {field:'DeviceNo',title:'设备编号',type:'string',width:110,require:true,align:'left'},
                       {field:'State',title:'状态',type:'int',bind:{ key:'设备状态',data:[]},width:110,require:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}